<?php

namespace app\common\model;

//use think\Model;

class IpadminModel extends BaseModel {

	protected $table = 'tp_adm_ips';

	public function addData($uid='',$ip,$opt,$param){
		$res = $this->insert([
			'uid'=>$uid,
			'ip' =>$ip,
			'opt'=>$opt,
			'param'=>$param,
			'date'=>$this->getDate()
		]);
		return $res;
	}
}
